Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 2 - Core Printing Features / Core Printing Features Reference
Functions / Printing With QuickDraw GX


GXSelectJobOutputPrinter

You can use the GXSelectJobOutputPrinter function to specify an output printer for a printable document.

void GXSelectJobOutputPrinter (gxJob aJob, Str31 printerName);
aJob
A reference to the job object for which you are specifying an output printer.
printerName
The name of the desktop printer.
DESCRIPTION
Your application is responsible for determining the output printer on which to print the document.

For example, when the user selects and prints a document from the Finder, your application needs to respond to the Print Documents ('pdoc') Apple event and then call the GXSelectJobOutputPrinter function to specify an output printer on which to print the selected document. The printer name can be obtained by using the Apple event's optional attribute, keyOptionalKeywordAttr.

RESULT CODES
fnfErrPrinter driver cannot be located.
gxSegmentLoadFailedErrA required code segment could not be found, or there was not enough memory to load it.
gxPaperTypeNotFoundThe paper-type object cannot be located.
SEE ALSO
Listing 2-16 on page 2-40 shows how to respond to the Print Documents Apple event and use the GXSelectJobOutputPrinter function to specify an output printer.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help